DSL extended - added ability to define event modules in runtime.