Add threshold option