Add logic to update and destroy events.