Added the feature to group events by date.