concatenate setThreshold calls.