Added functionality to add new list items.