Ceiling the values and changing the metric writers to support AVG