anchor.diff:            modstate :: term(),
             forward :: node(),
             handoff_node=none :: none | node(),
  +          handoff_pid :: pid(),
             pool_pid :: pid() | undefined,
             manager_event_timer :: reference(),
             inactivity_timeout}).
  
positive.code:                                        handoff_node=TargetNode});
          {false, NewModState} ->
              case riak_core_handoff_manager:add_outbound(Mod,Idx,TargetNode,self()) of
                  {ok,_Pid} ->
                      NewState = State#state{modstate=NewModState,
                                             handoff_node=TargetNode},
                      continue(NewState);
                  {error,_Reason} ->
  
negative.code:     %% Modstate has been deleted, waiting for unregistered.  No handoff.
      continue(State);
  maybe_handoff(State=#state{index=Idx, mod=Mod, modstate=ModState,
                             handoff_node=HN, handoff_pid=HPid}, TargetNode) ->
      ExistingHO = is_pid(HPid) andalso is_process_alive(HPid),
      ValidHN = case HN of
                    none ->
                        true;
                    TargetNode ->
                        not ExistingHO;
                    _ ->
                        lager:info("~s/~b: handoff request to ~p before "
                                   "finishing handoff to ~p",
                                   [Mod, Idx, TargetNode, HN]),
                        not ExistingHO
                end,
      case ValidHN of
          true ->
              case Mod:handoff_starting(TargetNode, ModState) of
                  {true, NewModState} ->
                      start_handoff(State#state{modstate=NewModState}, TargetNode);
                  {false, NewModState} ->
                      continue(State, NewModState)
              end;
          false ->
              continue(State)
      end.
  
  start_handoff(State=#state{index=Idx, mod=Mod, modstate=ModState}, TargetNode) ->
  