Initial version of grouping transactions by time