More inteligent autocomplete with flags