Improved autocomplete so that it now uses caching. Now also shows an error message if user doesn't exit.