Adds missing functionality for autocomplete example