Changed PWM Code