Changed threshold maximum value to 0.5