anchor.diff:  %% ------------------------------------------------------------------
   %% Internal Function Definitions
   %% ------------------------------------------------------------------
  +
  +% Clones one ETS table into a destination
  +clone_table(Src, Dest) ->
  +    ets:foldl(fun(Elem, _) ->
  +        ets:insert(Dest, Elem)
  +    end, true, Src).
  +
   
   % Makes a Rstar Geometry object from a Lat/Lng
   make_geo(Lat, Lng) ->
  
positive.code:         rgeo,     % R-star Geometry
          objects=[]  % List of OID's
  }).
  
  start_link(ID, Space) ->
      Name = list_to_atom(lists:flatten(io_lib:format("agent_~s_~p", [Space, ID]))),
  
negative.code:     {stop, normal, State};
  
  % Invoked when an agent is being recovered after a crash
  handle_cast({recover, Manager, {Pid1, Pid2}}, State) ->
      % Get the siblings
      Siblings = lists:append(Pid1, Pid2),
      NS = case Siblings of
          [] -> lager:warning("No siblings available for recovery!"), State;
          [Sibling | _] ->
              % Log the attempt
              lager:info("Attempting recovery from agent ~p", [Sibling]),
  
              % Perform a state transfer
              {ok, OtherState} = gen_server:call(Sibling, state_transfer,
                                                 ?TRANSFER_TIMEOUT),
              lager:info("State transfer from agent ~p complete", [Sibling]),
  
              % Clone the tables
              lager:info("Cloning objects from ~p", [Sibling]),
              clone_table(OtherState#state.objects, State#state.objects),
              lager:info("Cloning geometries from ~p", [Sibling]),
              clone_table(OtherState#state.geos, State#state.geos),
  
              % Merge in the Rtree as our updated state
              lager:info("Merging R-tree from ~p", [Sibling]),
              State#state{rstar=OtherState#state.rstar}
      end,
  
      % Notify the manager we are ready
      gen_server:cast(Manager, {ready, self(), State#state.space}),
      {noreply, NS}.
  
  
  handle_info(_Info, State) ->
  