Use mean instead of median