Update thresholding.hoc