Stepper Motor not spinning (sometimes)

You have to ramp the step-rate up and down if you want the motor to keep up