Need to WIP the median calc