Commented autocomplete function