Added PWM start and stop functionality.