Better handling of the "in_recog" flag