Implemented getEvents.