Made getEvents static.