Added time aggregation unit parameter.