Stepper code adjusted