Add support for readings and intervals and groupBy