Removed colorThreshold function.