Updating thresholding.