Added PWM feature