First draft of recognizer