Switched to adaptive thresholding as the paper calls for