anchor.diff:              "lasp-client"
       end,
   
  -    Nodes = case request(Task) of
  +    %% Generate URL.
  +    Url = generate_task_url(Task),
  +
  +    Nodes = case request(get, Url) of
           {ok, Response} ->
               Nodes1 = generate_nodes(Response),
               Nodes1;
  
positive.code:     lasp_peer_service:join(Node).
  
  %% @private
  request(Task) ->
      IP = os:getenv("IP", "127.0.0.1"),
      DCOS = os:getenv("DCOS", "false"),
      Headers = case DCOS of
                  "false" ->
                      [];
  
negative.code:                     Token = os:getenv("TOKEN", "undefined"),
                      [{"Authorization", "token=" ++ Token}]
      end,
      case httpc:request(Type, {Url, Headers}, [], [{body_format, binary}]) of
          {ok, {{_, 200, _}, _, Body}} ->
              {ok, jsx:decode(Body, [return_maps])};
          Other ->
  