Merge autocomplete functionality