Added thresholdLenght functionality for positive diff  peaks