Change to a simpler model of limiting the maximum number of iterations.