Use mean instead of sum