Small modifications on SensorAggregator.scala.