Software PWM helper added