Rewritten InventoryHelper