Moved xrecover to curve