Add code that removes the max and min values to get rid of any weird fluctuations in averaging