Adjusted thresholdLenght