Thresholding currently occurs twice in the code even though it only needs to occur once
Thresholding currently occurs twice in the code even though it only needs to occur once