Skeleton for new pwm code