anchor.diff:      JointAcc = dets:foldl(F, Acc, Log),
       join_logs(Rest, F, JointAcc).
   
  -%% @doc	insert_operation: Inserts an operation into the log only if the OpId is not already in the log
  -%%		Input:	Log: The identifier log the log where the operation will be inserted
  -%%				Key: Key to which the operation belongs.
  -%%				OpId: Id of the operation to insert
  -%%				Payload: The payload of the operation to insert
  -%%		Return:	{ok, OpId} | {error, Reason}
  +%% @doc         insert_operation: Inserts an operation into the log only if the OpId is not already in the log
  +%%              Input:  Log: The identifier log the log where the operation will be inserted
  +%%                              Key: Key to which the operation belongs.
  +%%                              OpId: Id of the operation to insert
  +%%                              Payload: The payload of the operation to insert
  +%%              Return:         {ok, OpId} | {error, Reason}
   -spec insert_operation(log(), key(), OpId::{Number::non_neg_integer(), node()}, Payload::term()) -> {ok, {Number::non_neg_integer(), node()}} | {error, reason()}.
   insert_operation(Log, Key, OpId, Payload) ->
       case dets:match(Log, {Key, #operation{op_number=OpId, payload='$1'}}) of
  
positive.code:     end.
  
  %% @doc open_logs: open one log per partition in which the vnode is primary
  %%	Input:	LogFile: Partition concat with the atom log
  %%			Preflists: A list with the preflist in which the vnode is involved
  %%			Initial: Initial log identifier. Non negative integer. Consecutive ids for the logs. 
  %%			Map: The ongoing map of preflist->log. dict() type.
  %%	Return:	LogsMap: Maps the  preflist and actual name of the log in the system. dict() type.
  -spec open_logs(LogFile::string(), [preflist()], N::non_neg_integer(), Map::dict()) -> LogsMap::dict() | {error,reason()}.
  open_logs(_LogFile, [], _Initial, Map) -> Map;
  open_logs(LogFile, [Next|Rest], Initial, Map)->
  
negative.code:     end.
  
  %% @doc lookup_operations: Looks up for the operations logged for a particular key
  %%              Input:  Log: Identifier of the log
  %%                              Key: Key to shich the operation belongs
  %%              Return:         List of all the logged operations 
  -spec lookup_operations(Log::term(), Key::term()) -> list() | {error, atom()}.
  lookup_operations(Log, Key) ->
      dets:lookup(Log, Key).
  