FortifyPairs function

Make Pairs Fortran Compatible