Adding group by time support