anchor.diff:  %%		Input:	Map:	dict that representes the map
   %%				Preflist:	The key to search for.
   %%		Return:	The actual name of the log
  --spec get_log_from_map(Map::dict(), FullPreflist::[{Index::integer(), Node::term()}]) -> {ok, term()} | {error, no_log_for_preflist}.
  +-spec get_log_from_map(dict(), preflist()) -> {ok, term()} | {error, no_log_for_preflist}.
   get_log_from_map(Map, FullPreflist) ->
       Preflist = remove_node_from_preflist(FullPreflist),
       lager:info("Preflist to map: ~w~n",[Preflist]),
  
positive.code: %%				F: Function to apply when floding the log (dets)
  %%				Acc: Folded data
  %%		Return: Folded data of all the logs.
  -spec join_logs(Map::[{[{Index::integer(), Node::term()}], Log::term()}], F::fun(), Acc::term()) -> term().
  join_logs([], _F, Acc) -> Acc;
  join_logs([Element|Rest], F, Acc) ->
      {_Preflist, Log} = Element,
  
negative.code: %% @doc remove_node_from_preflist:  From each element of the input preflist, the node identifier is removed
  %%      Input:  Preflist: list of pairs {Partition, Node}
  %%      Return: List of Partition identifiers
  -spec remove_node_from_preflist(preflist()) -> [integer()].
  remove_node_from_preflist(Preflist) ->
      F = fun(Elem, Acc) ->
                  {P,_} = Elem,
  