Improve threshold and decrease debug LED duty cycle.