Keep PWM signal in loop with other things