Some revisions to the revised category balance calculations and a bugfix in CategoryBalanceDatastore