Simplified pwm, added time/temp check framework