Cleanup median analysis.