Added the recovery code

Fixing homography atm