Index: branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/OrchestratedAlgorithmNode.cs
===================================================================
--- branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/OrchestratedAlgorithmNode.cs	(revision 14624)
+++ branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/OrchestratedAlgorithmNode.cs	(revision 14628)
@@ -65,12 +65,10 @@
     [StorableConstructor]
     protected OrchestratedAlgorithmNode(bool deserializing) : base(deserializing) { }
-    protected OrchestratedAlgorithmNode(OrchestratedAlgorithmNode original, Cloner cloner)
-      : base(original, cloner) {
+    protected OrchestratedAlgorithmNode(OrchestratedAlgorithmNode original, Cloner cloner) : base(original, cloner) {
       EvalHook = cloner.Clone(original.EvalHook);
       RegisterEvents();
     }
     public OrchestratedAlgorithmNode() : this("OrchestratedAlgorithmNode") { }
-    public OrchestratedAlgorithmNode(string name)
-      : base(name) {
+    public OrchestratedAlgorithmNode(string name) : base(name) {
       var orchestrationPort = new MessagePort(OrchestrationPortName);
       Ports.Add(orchestrationPort);
@@ -97,9 +95,9 @@
     #region Port Events
     private void OrchestrationPort_MessageReceived(object sender, EventArgs<IMessage, CancellationToken> e) {
-      var message = e.Value;
-      var orchestrationMessage = ((EnumValue<OrchestrationMessage>)message["OrchestrationMessage"]).Value;
+      var requestMessage = e.Value;
+      var messageFlags = ((EnumValue<OrchestrationMessage>)requestMessage["OrchestrationMessage"]).Value;
 
       #region Prepare
-      if (orchestrationMessage.HasFlag(OrchestrationMessage.Prepare)) {
+      if (messageFlags.HasFlag(OrchestrationMessage.Prepare)) {
         switch (Algorithm.ExecutionState) {
           case ExecutionState.Prepared:
@@ -110,5 +108,5 @@
               var prob = (IHeuristicOptimizationProblem)problemMsgVal.Value.Clone();
 
-              if (orchestrationMessage.HasFlag(OrchestrationMessage.SetEvalHook)) {
+              if (messageFlags.HasFlag(OrchestrationMessage.SetEvalHook)) {
                 var instEval = prob.Evaluator as InstrumentedOperator;
                 if (instEval != null && EvalHook != null) instEval.AfterExecutionOperators.Add(EvalHook);
@@ -140,5 +138,5 @@
               }
 
-              Algorithm.Prepare(orchestrationMessage.HasFlag(OrchestrationMessage.ClearRuns));
+              Algorithm.Prepare(messageFlags.HasFlag(OrchestrationMessage.ClearRuns));
             }
             break;
@@ -148,5 +146,5 @@
 
       #region Start
-      if (orchestrationMessage.HasFlag(OrchestrationMessage.Start)) {
+      if (messageFlags.HasFlag(OrchestrationMessage.Start)) {
         switch (Algorithm.ExecutionState) {
           case ExecutionState.Prepared:
@@ -175,8 +173,8 @@
 
             if (sendResultMessage) {
-              message["Results"] = (ResultCollection)Algorithm.Results.Clone();
-              var msg = OrchestrationPort.PrepareMessage();
-              msg["Results"] = (ResultCollection)Algorithm.Results.Clone();
-              OrchestrationPort.SendMessage(msg);
+              requestMessage["Results"] = (ResultCollection)Algorithm.Results.Clone();
+              var responseMessage = OrchestrationPort.PrepareMessage();
+              responseMessage["Results"] = (ResultCollection)Algorithm.Results.Clone();
+              OrchestrationPort.SendMessage(responseMessage);
             } else sendResultMessage = true;
             break;
@@ -186,11 +184,10 @@
 
       #region Pause
-      if (orchestrationMessage.HasFlag(OrchestrationMessage.Pause)) {
+      if (messageFlags.HasFlag(OrchestrationMessage.Pause)) {
         if (Algorithm.ExecutionState == ExecutionState.Started) {
           sendResultMessage = false;
           try {
             Algorithm.Pause();
-          }
-          catch (InvalidOperationException) {
+          } catch (InvalidOperationException) {
             // ExecutionState might have changed since we accepted the message
           }
@@ -200,5 +197,5 @@
 
       #region Stop
-      if (orchestrationMessage.HasFlag(OrchestrationMessage.Stop)) {
+      if (messageFlags.HasFlag(OrchestrationMessage.Stop)) {
         switch (Algorithm.ExecutionState) {
           case ExecutionState.Started:
@@ -206,9 +203,7 @@
             try {
               Algorithm.Stop();
-            }
-            catch (InvalidOperationException) {
+            } catch (InvalidOperationException) {
               // ExecutionState might have changed since we accepted the message
-            }
-            catch (NullReferenceException) {
+            } catch (NullReferenceException) {
               // BasicAlgorithm might have stopped since we accepted the message
               // CancellationTokenSource is null in this case
