Add the event code (between