Made median filter work for V3.