Changed speed representation to PWM