Added support for passing of event data.