Added setGlobalThreshold method.