Implemented addItem.