Fix naming of function addToList