Added generic function needed by the implementation.
Added EngineStartEvent and EngineStopEvent called when engine start and stops.