Improved usage of events in the process engine.