Added minThresholdLength