Updates to threshholding routines.
Better name.