Removed displayEvents function