Method getAllEvents works