Inventory manager, commented and ready to test