Switched to median to avoid extreme values affecting the graphs.