Changes to PWM pin handling