Made step a parameter.