I have added this functionality to distBuilder. All you have to do is add the argument addTotals: true when initializing the distBuilder. See below for an example.