Refactor getEvents