Limited maximum number of iterations during refinement