Finished creating medians for each amp. Need still to pull them out of functions and let be globel.