Added recognizing functionality