This should be done by clearing the detection outputs when the threshold is passed.
This should be done by clearing the detection outputs when the threshold is passed.