Modified scripts to visuaize the events