Added autocomplete code.

NOTE: Autocomplete currently not working.