Changed the way some variables were being passed around for ransac.