Outline median path routine