Generified the autocompletion.