The threshold doesn't have to be an int