First version of autotyping