anchor.diff:  
   
   init(Bucket) ->
  -    TableName = create_table(Bucket),
  +    create_tables(Bucket),
       ns_pubsub:subscribe(ns_stats_event),
  -    {ok, #state{bucket=Bucket, table=TableName}}.
  +    {ok, #state{bucket=Bucket}}.
   
   
   handle_call(unhandled, unhandled, unhandled) ->
  
positive.code:     list_to_atom(?MODULE_STRING ++ "-" ++ Bucket).
  
  %% @doc Generate a suitable name for the Mnesia table.
  table_name(Node, Bucket) ->
      list_to_atom(lists:flatten(io_lib:format("~s-~s-~s", [?MODULE_STRING,
                                                            Node, Bucket]))).
  
  
  %% @doc Truncate the given table to the last N records.
  
negative.code:     unhandled.
  
  
  handle_info({stats, Bucket, Sample}, State = #state{bucket=Bucket}) ->
      Tab = table_name(node(), Bucket, minute),
      {atomic, ok} = mnesia:transaction(fun () -> mnesia:write(Tab, Sample, write) end),
      gen_event:notify(ns_stats_event, {sample_archived, Bucket, Sample}),
      {noreply, maybe_truncate(State)};
  