Added sum and average