Added Thresholds and threshold rules