Added more diagnostics to asserts in TagInventory.
Added more diagnostics.