anchor.diff:  %% @doc message handler
   -spec on(message(), state()) -> state() | unknown_event.
   
  -on({init_rt, Id, Pred, Succ}, {uninit, TriggerState}) ->
  +on({init_rt, Id, Pred, Succ}, {uninit, QueuedMessages, TriggerState}) ->
       TriggerState2 = trigger:next(TriggerState),
  +    msg_queue:send(QueuedMessages),
       {Id, Pred, Succ, ?RT:empty(Succ), TriggerState2};
   
  -on(Message, {uninit, TriggerState}) ->
  -    comm:send_local(self() , Message),
  -    {uninit, TriggerState};
  +on(Message, {uninit, QueuedMessages, TriggerState}) ->
  +    {uninit, msg_queue:add(QueuedMessages, Message), TriggerState};
   
   % re-initialize routing table
  -on({init_rt, NewId, NewPred, NewSucc}, {_, OldPred, OldSucc, OldRT, TriggerState}) ->
  +on({init_rt, NewId, NewPred, NewSucc},
  +   {_OldId, OldPred, OldSucc, OldRT, TriggerState}) ->
       NewRT = ?RT:empty(NewSucc),
       ?RT:check(OldRT, NewRT, NewId, OldPred, NewPred, OldSucc, NewSucc),
       new_state(NewId, NewPred, NewSucc, NewRT, TriggerState);
   
   %% userdevguide-begin rt_loop:update_rt
   % update routing table with changed ID, pred and/or succ
  -on({update_rt, NewId, NewPred, NewSucc}, {OldId, OldPred, OldSucc, OldRT, TriggerState}) ->
  +on({update_rt, NewId, NewPred, NewSucc},
  +   {OldId, OldPred, OldSucc, OldRT, TriggerState}) ->
       case ?RT:update(NewId, NewPred, NewSucc, OldRT, OldId, OldPred, OldSucc) of
           {trigger_rebuild, NewRT} ->
               % trigger immediate rebuild
  
positive.code:     gen_component:start_link(?MODULE, Trigger, [{register, InstanceId, routing_table}]).
  
  %% @doc Initialises the module with an empty state.
  -spec init(module()) -> {uninit, trigger:state()}.
  init(Trigger) ->
      % Note: no need to call dht_node:register_for_node_change(self()) since we
      % get notified of a new node ID via the update_state/3 method that is
      % called in dht_node's rm_update_neighbors handler
      log:log(info,"[ RT ~p ] starting routingtable", [comm:this()]),
      TriggerState = trigger:init(Trigger, ?MODULE),
      {uninit, TriggerState}.
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Private Code
  
negative.code:     new_state(Id, Pred, Succ, NewRT, TriggerState);
  
  % debug_info for web interface
  on({'$gen_cast', {debug_info, Requestor}},
     {_Id, _Pred, _Succ, RTState, _TriggerState} = State) ->
      KeyValueList =
          [{"rt_size", ?RT:get_size(RTState)},
           {"rt (index, node):", ""} | ?RT:dump(RTState)],
  