Add next event logic.