Added more functionality to color thresholder