Add default value for threshold