Updates inventory.