Add Diagnostic and DiagnosticsEngine.