Snatched autocomplete setup from @magnars