Limit the number of cycles of the simulation.