Adds motor pwm control