Iteration now starts at 1 and goes to numcycles.