ENH:  Adding thresholding option.