anchor.diff:  %% @private
   %% @doc Add Resource to our given set.
   give_resource(Resource, Type, Pid, Ref, Meta, State) ->
  +    lager:info("Gave ~p/~p to ~p:~p", [Type, Resource, Pid, Meta]),
       Entry = ?RESOURCE_ENTRY(Resource, Type, Pid, Meta, Ref, given),
       give_resource(Entry, State).
   
  
positive.code:     catch
          table_id_undefined ->
              %% This could go into a queue to be played when the transfer happens.
              {reply, 0, State};
          {unregistered, Lock} ->
              {reply, 0, update_limit(Lock, Limit, ?DEFAULT_LOCK_INFO, State)};
          {badtype, _Lock}=Error ->
  
negative.code:                        State).
  
  increment_stat_refills(Token, State) ->
      lager:info("Refill token ~p", [Token]),
      update_stat_window(Token,
                         fun(Stat) -> Stat#bg_stat_hist{refills=1+Stat#bg_stat_hist.refills} end,
                         default_refill(Token, State),
  