Added functionality to add items.