Changed N steps and M steps