Alternative way...
Changed mean into sum.