Removed getAllEvents and refreactored to use getEvents instead