Fixed that annoying threshold bug!