anchor.diff:  -include("lasp.hrl").
   
   %% API
  --export([start_link/4,
  -         declare/2]).
  +-export([start_link/5,
  +         declare/2,
  +         declare/3]).
   
   %% Callbacks
   -export([init/1,
  
positive.code: %%%===================================================================
  
  %% @doc Initialize the request.
  init([ReqId, From, Id, Type]) ->
      State = #state{preflist=undefined,
                     req_id=ReqId,
                     coordinator=node(),
                     from=From,
  
negative.code:     {ok, prepare, State, 0}.
  
  %% @doc Prepare request by retrieving the preflist.
  prepare(timeout, #state{id=Id, preflist=Preflist0}=State) ->
      Preflist2 = case Preflist0 of
          undefined ->
              Preflist = lasp:preflist(?N, Id, lasp),
              [{Index, Node} || {{Index, Node}, _Type} <- Preflist];
          _ ->
              Preflist0
      end,
      {next_state, execute, State#state{preflist=Preflist2}, 0}.
  
  %% @doc Execute the request.
  