Added functions to the Translator
Added code recognition to controller