Add power pwm function