Adds an item and cleanup