Added arbitrary PWM support.