Updated findThreshHold()