anchor.diff:      p_stat_utils:register_persistence_server(Site, self()),
       {ok, #state{directory=Storage, site=Site, toc=Toc, max_history=History}}.
   
  -handle_call({query_between, Key, Start, End}, _From, #state{toc=Toc} = State) ->
  +handle_call({get_timestamps, Start, End}, _From, #state{toc=Toc} = State) ->
       % Get the tables that exist between the two times
       Tables = p_persister_toc:between(Toc, Start, End),
  -
  -    % Open each table as a dets object, query it for the key.
  -    Results = search_key(Key, Tables),
  -    {reply, {ok, Results}, State};
  +    {reply, {ok, gb_trees:keys(Tables)}, State};
  +
  +handle_call({query_key, Timestamp, Key}, _From, #state{toc=Toc} = State) ->
  +    R = case p_persister_toc:lookup(Toc, Timestamp) of
  +        {ok, Filename} ->
  +            {ok, D} = dets:open_file(Filename) ,
  +            try get_values_from_table(D, Key)
  +            catch
  +                error:_Reason ->
  +                    dict:new()
  +            end;
  +        {error, missing} ->
  +            dict:new()
  +    end,
  +    {reply, {ok, Timestamp, R}, State};
   
   handle_call(_Request, _From, State) ->
       {reply, ok, State}.
  
positive.code: time_diff_to_seconds({Days, {Hours, Minutes, Seconds}}) ->
      Days * 24 * 3600 + Hours * 3600 + Minutes * 60 + Seconds.
  
  % Loops through a set of DETS tables, looking for a key
  search_key(Key, Tables) ->
      search_key(Key, gb_trees:next(gb_trees:iterator(Tables)), []).
  search_key(_Key, none, Acc) ->
      % Merge the dicts together into a gb_trees
      lists:foldl(fun(Dict1, Tree) ->
          % Insert each item into the tree
  
negative.code:     gen_server:cast(Server, {consolidated, OldMinute, Filename, OldTimestamps}).
  
  query_between(Server, Key, Start, End) ->
      % Get Tables between Start and End
      {ok, Timestamps} = gen_server:call(Server, {get_timestamps, norm_to_min(Start), norm_to_min(End)}),
      {ok, search_key(Server, Key, Timestamps)}.
  
  query_key(Server, Timestamp, Key) ->
      gen_server:call(Server, {query_key, Timestamp, Key}).
  
  %% ------------------------------------------------------------------
  %% gen_server Function Definitions
  