Incomplete (and probably buggy) ThresholdBreachDetector