Allow increasing and decreasing number of iterations