Renamed m to numberOfIterations