Add autocompletion to term