Median extension method