HAHA! Thresholding should work correctly!
Fixed thresholding so it takes into account lower limit

Thresholding didn't care about what the actual range was, only how big
it was. This should fix that