anchor.diff:  %%%===================================================================
   %%% Step functions
   %%%===================================================================
  -
  -%%--------------------------------------------------------------------
  -%% @doc Configures the service.
  -%% @end
  -%%--------------------------------------------------------------------
  --spec configure(Ctx :: service:step_ctx()) -> ok | no_return().
  -configure(#{oneprovider_token := Token}) ->
  -    OzDomain = onezone_tokens:read_domain(Token),
  -    Name = ?SERVICE_OPW,
  -    Node = nodes:local(Name),
  -    rpc:call(Node, application, set_env, [Name, oz_domain, OzDomain]),
  -    onepanel_env:write([Name, oz_domain], OzDomain, ?SERVICE_OPW).
  -
   
   %%--------------------------------------------------------------------
   %% @doc Checks if onezone is available at given address
  
positive.code:         #steps{service = ?SERVICE_OPW, action = status}
      ];
  
  get_steps(register, #{hosts := Hosts} = Ctx) ->
      [
          #step{hosts = Hosts, function = configure,
              ctx = Ctx#{application => ?SERVICE_OPW}},
          #step{hosts = Hosts, function = check_oz_availability,
              attempts = onepanel_env:get(connect_to_onezone_attempts)},
          #step{hosts = Hosts, function = register, selection = any},
  
negative.code: -spec on_registered(OpwNode :: node(), ProviderId :: id(),
      tokens:serialized(), OnezoneDomain :: binary()) -> ok.
  on_registered(OpwNode, ProviderId, RootToken, OnezoneDomain) ->
      OpwNodes = nodes:all(?SERVICE_OPW),
      OnezoneDomainStr = unicode:characters_to_list(OnezoneDomain),
      ok = onepanel_env:set_remote(OpwNodes, oz_domain,
          OnezoneDomainStr, ?SERVICE_OPW),
      ok = onepanel_env:write([?SERVICE_OPW, oz_domain],
          OnezoneDomainStr, ?SERVICE_OPW),
      ok = op_worker_rpc:provider_auth_save(OpwNode, ProviderId, RootToken),
      ?info("Oneprovider registered in Onezone ~ts", [OnezoneDomain]),
  
      service:update_ctx(name(), #{
          registered => true,
          onezone_domain => OnezoneDomain
  