Added cloud adapter for avg aggregation function.