added important functions to the event driver.