Changed the averages to contain the ceiling of the values