Add an absolute event time to events and refactor