Some crappy PWM code