Added thresholding on epry.