Make the aggregation interval configurable.