anchor.diff:                  State#ppcon_state{msg_id = CurrentMsgId + 1};
               {From, {send, HostName, MsgId, Data} = _Req} ->
                   NState1 = case maps:find(HostName, Connections) of
  -                    error ->
  -                        case connect(HostName, 5555, [{certfile, gr_plugin:get_cert_path()}, {keyfile, gr_plugin:get_key_path()}]) of
  -                            {ok, Socket} ->
  -                                ?info("Connected to ~p", [HostName]),
  -                                State#ppcon_state{connections = maps:put(HostName, Socket, Connections)};
  -                            {error, Reason} ->
  -                                ?error("Cannot connect to ~p due to ~p", [HostName, Reason]),
  -                                State
  -                        end;
  -                    {ok, _} ->
  -                        State
  -                end,
  +                              error ->
  +                                  case connect(HostName, 5555, [{certfile, gr_plugin:get_cert_path()}, {keyfile, gr_plugin:get_key_path()}]) of
  +                                      {ok, Socket} ->
  +                                          ?info("Connected to ~p", [HostName]),
  +                                          State#ppcon_state{connections = maps:put(HostName, Socket, Connections)};
  +                                      {error, Reason} ->
  +                                          ?error("Cannot connect to ~p due to ~p", [HostName, Reason]),
  +                                          State
  +                                  end;
  +                              {ok, _} ->
  +                                  State
  +                          end,
                   case maps:find(HostName, NState1#ppcon_state.connections) of
                       {ok, Socket1} ->
                           Socket1 ! {send, Data},
  
positive.code:     Return.
  
  
  %% ====================================================================
  %% Internal functions
  %% ====================================================================
  
  flush_errors() ->
      receive
          {error, _} -> flush_errors()
  
negative.code:     main_loop(NewState).
  
  
  %% exec/1
  %% ====================================================================
  %% @doc Synchronously executes given command on inter-cluster communicator service (main_loop/1).
  %%      Returns response or fails with exception.
  %% @end
  -spec method(Command :: term()) -> Result :: term() | no_return().
  %% ====================================================================
  exec(Command) ->
      PPCon = whereis(ppcon),
      PPCon ! {self(), Command},
  