Set ranges for thresholds and made them dynamic