Working on thresholding
Range/threshold setting