Changing stop criteria to be number of iterations, rather than delta