Better skeleton, settled on how pwm works.