Change error handling
Rename var recognition to rec
Add recognition feature