Use InventoryUtil to dodge deprecation warnings.