Renamed setStep to toggleStep. Added new setStep function.