Adding functionality to use metadata to ensure Inventory wide charging or First item charging