Changed median to mean.