Fixed bug with multiple thresholds.