anchor.diff:      {[{"application/json", to_json}], Req, Ctx}.
   
   to_json(ReqData, State) ->
  -    {ok, _Pid} = spawn_link(?MODULE, run, []),
  +    spawn_link(?MODULE, run, []),
       Encoded = jsx:encode(#{status => ok}),
       {Encoded, ReqData, State}.
   
  
positive.code:          content_types_provided/2,
           to_json/2]).
  
  -export([run/0]).
  
  -include("lasp.hrl").
  -include_lib("webmachine/include/webmachine.hrl").
  
  -define(NUM_EVENTS, 1000000).
  -define(NUM_CLIENTS_PER_VM, 500).
  
  -define(ORSET, lasp_orset).
  
negative.code:     {ok, Nodes} = lasp_peer_service:members(),
  
      %% Run the simulation.
      Profile = application:get_env(?APP, profile, true),
      case Profile of
          true ->
              lager:info("Applying and profiling function..."),
              eprof:profile([self()],
                            ?MODULE,
                            advertisement_counter_transmission_simulation,
                            [Nodes]),
  
              lager:info("Analyzing..."),
              eprof:analyze(total, [{sort, time}]);
          false ->
              advertisement_counter_transmission_simulation(Nodes)
      end,
  
      ok.
  
  