Add addItemToList function.