Updates return value of the autocomplete function
Removes future print fn and replaces it with ordinary print fn