Add threshold input