Moved IR into the motor PWM