anchor.diff:                      Token = os:getenv("TOKEN", "undefined"),
                       [{"Authorization", "token=" ++ Token}]
       end,
  -    Url = case DCOS of
  -              "false" ->
  -                "http://" ++ IP ++ ":8080/v2/apps/" ++ Task ++ "?embed=app.taskStats";
  -              _ ->
  -                DCOS ++ "/marathon/v2/apps/" ++ Task ++ "?embed=app.taskStats"
  -          end,
  -    case httpc:request(get, {Url, Headers}, [], [{body_format, binary}]) of
  +    case httpc:request(Type, {Url, Headers}, [], [{body_format, binary}]) of
           {ok, {{_, 200, _}, _, Body}} ->
               {ok, jsx:decode(Body, [return_maps])};
           Other ->
  
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:             "lasp-client"
      end,
  
      %% Generate URL.
      Url = generate_task_url(Task),
  
      Nodes = case request(get, Url) of
          {ok, Response} ->
              Nodes1 = generate_nodes(Response),
              Nodes1;
  