Added method getEvents.