Initial stepper motor code.