Separated the Aggregation function
Merge branch 'master' of https://github.com/GooruAdmin/insights-data-logger