Correct thresholding mistake for Threshold Mid (t-1) vs (t / 2)
Fix thresholding high (t/2)