Add scaling to average_combine and median_combine