Calculate the median as well