Tweaking analysis to use average instead of sum