Use multiple arity to handle optional thresh arguments