Add function for deleting items. Did some more pure interface.