Add scaling to average_combine and median_combine

Do you still need the print statements?