Multiple threshholding