Added code to convert stepper motor to degrees