Defining when to terminate recognition