anchor.diff:  create_directories(0) ->
       ok;
   create_directories(N) when N > 0 ->
  -    Key = int_to_str(get_directory_by_number(N)),
  +    Key = int_to_str(get_directory_key_by_number(N)),
       TLog = api_tx:new_tlog(),
   
       case api_tx:read(TLog, Key) of
  
positive.code:     end,
      State;
  
  handle_msg({directory_trigger}, State) ->
      trigger(directory_trigger),
      MyDirectories = State#state.my_dirs,
      %Reassignments = [balance(Dir) || Dir <- MyDirectories],
      %PeriodicThreshold =
      %% Threshold k_p = Average laod in directory
      %% Threshold k_e = 1 meaning full capacity
      %% Upon receipt of load information:
  
negative.code:     %%  for every node from heavist to lightest in directory 
      %%    if l_n / c_n > k 
      %%       balance such that (l_n + l_x) / c_n gets minimized
      %%  return assignment
      MyDirKeys = State#state.my_dirs,
      manage_directories(MyDirKeys),
      State;
  
  handle_msg({get_state_response, MyRange}, State) ->
  