added computation of mH at beginning of ThresholdSearch