Allow exit when number of iterations hit