Added NumberOfIterations constraint.