Allow CGM to take a maximum number of iterations, return the amount needed.