Adjust the step number refs according to algorithm updates