Support thresholding operation.