Implemented third argument -> Number of Iterations.