Updated getInventory