private static void EnableOperationModeEdl40(string portName, SmlComServiceClient proxy, Guid clientGuid, DateTime newTime)
 {
     Console.WriteLine("Enabling EDL40 mode with new meter time: " + newTime);
     proxy.EnableOperationModeEdl40(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), newTime);
     var booleanResult = proxy.ReadIsOperationModeEdl40(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     Console.WriteLine("Operation mode read: " + Stringify(booleanResult));
     var meterTimeResult = proxy.ReadDateAndTime(
        clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     Console.WriteLine("Meter time read: " + Stringify(meterTimeResult));
     Console.WriteLine();
 }