ThresholdSearch changed to ModeArray