Added min/max thresholds for cutting