Fixes to alerts, mean is no good, use median