Finished implementing the tab autocomplete functionality.