Added median feature