Lots of work on barrelSorter and invMgr API