Added functionality to get events by date range.