PWM modifications