Inventory detection