Added new thresholding commands