Updated updateInventory
Merged