Started the event code