Added Thresholding

ok