Moved PWM steps into pattern and out of pins.