Set two thresholds