Updated to set PWM values