Add threshold option to configuration