Moved the basic event functions to EventCalendar class.