Improve autocomplete functionality.