Added the start of event logic