Added ability to compute volume averages.