Finished the average functions. Just need to get the data.