anchor.diff:                            Tab = table(Bucket, Period),
                             Key = mnesia:last(Tab),
                             hd(mnesia:read(Tab, Key))
  -                  end) of
  +                  end, ?RETRIES) of
                   {atomic, Result} ->
                       {ok, Result};
                   Err ->
  
positive.code: %% @doc Return the last N records starting with the given key from Tab.
  walk(Tab, N) ->
      {atomic, Results} = mnesia:transaction(
                            fun () -> walk(Tab, mnesia:last(Tab), N, []) end),
      Results.
  
  
  
negative.code:                                  Avg ->
                                       mnesia:write(NextTab, Avg, write)
                               end
                       end, ?RETRIES).
  
  
  create_tables(Bucket) ->
  