anchor.diff:                           ok %TODO
                    end,
       comm:send_local(SourcePid, {get_sync_struct_response, SyncStruct}),
  +    ?TRACE("build_SyncStruct - finished send response to [~p]", [SourcePid]),
       ok.
   
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   % BloomFilter building
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
  -%% @doc Build two bloom filter, one over all keys (BF1), 
  -%%      one over all keys concatenated with their version (BF2)
  +%% @doc Create two bloom filter of a given database chunk.
  +%%      One over all keys and one over all keys concatenated with their version.
  +-spec fill_bloom(?DB:db_as_list(), 
  +                 KeyBF::?REP_BLOOM:bloomFilter(), 
  +                 VerBF::?REP_BLOOM:bloomFilter()) -> 
  +          {?REP_BLOOM:bloomFilter(), ?REP_BLOOM:bloomFilter()}.
  +fill_bloom([], KeyBF, VerBF) ->
  +    {KeyBF, VerBF};
  +fill_bloom([H | T], KeyBF, VerBF) ->
  +    {Key, _, _, _, Ver} = H,
  +    AddKey = lists:min(?RT:get_replica_keys(Key)), %map keys to their smallest associated key
  +    NewKeyBF = ?REP_BLOOM:add(KeyBF, AddKey),
  +    NewVerBF = ?REP_BLOOM:add(VerBF, integer_to_list(AddKey) ++ "#" ++ integer_to_list(Ver)),
  +    fill_bloom(T, NewKeyBF, NewVerBF).
  +
  +%% @doc Build bloom filter sync struct.
   -spec build_bloom(db_chunk()) -> sync_struct().
  -build_bloom({Interval, _DB}) ->
  -    %create bloom filter
  +build_bloom({Interval, DB}) ->
       Fpr = 0.001,           %TODO move to config?
  -    ElementNum = 10000,    %TODO set to node db item cout + 5%?
  +    ElementNum = 10,    %TODO set to node db item cout + 5%?
       HFCount = bloom:calc_HF_numEx(ElementNum, Fpr),
       Hfs = ?REP_HFS:new(HFCount),
       BF1 = ?REP_BLOOM:new(ElementNum, Fpr, Hfs),
       BF2 = ?REP_BLOOM:new(ElementNum, Fpr, Hfs),    
  -    %fill bloom filter
  -    %TODO
  -	%lists:min(?RT:get_replica_keys(Key)) %map keys to their smallest associated key
  -	{Interval, comm:this(), BF1, BF2}.
  +    {KeyBF, VerBF} = fill_bloom(DB, BF1, BF2),
  +	{Interval, comm:this(), KeyBF, VerBF}.
   
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   % Startup
  
positive.code: -type db_chunk() :: {intervals:interval(), ?DB:db_as_list()}.
  -type sync_struct() :: %TODO add merkleTree + art
      {   
          Interval    :: intervals:interval(), 
          SrcNode     :: comm:mypid(),
          KeyBF       :: ?REP_BLOOM:bloomFilter(),
          KeyVersBF   :: ?REP_BLOOM:bloomFilter()
      }. 
  -type sync_method() :: bloom | merkleTree | art.
  -type state() :: 
  
negative.code: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Web Debug Message handling
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  on({web_debug_info, Requestor}, 
     {SyncMethod, _TriggerState} = State) ->
      KeyValueList =
  