Use separate lib for medians.