Prelim work on getting the bag inventories working