Updated thresholding in filter