Update threshold

Code is still not functional