Additions for PWM code for fan