anchor.diff:                  {error, Error} -> {Error, Feeds}
               end
       end.
  -
  -check_for_updates(Feeds) ->
  -    NeedingUpdate = lists:filter(fun(Feed) -> Feed#er_feed.nextCheck < calendar:universal_time() end, get_all_feeds(Feeds)),
  -    io:format("Feeds needing update: ~p~n", [length(NeedingUpdate)]),
  -    lists:foreach(fun(Feed) -> supervisor:start_child(er_crawler_sup, [Feed]) end, NeedingUpdate).
  -
  -update_feed(Uri, Feeds) ->
  -    [Feed] = lists:filter(fun(Feed) -> Feed#er_feed.feed =:= Uri end, get_all_feeds(Feeds)),
  -    io:format("Updating feed: ~p~n", [Uri]),
  -    supervisor:start_child(er_crawler_sup, [Feed]).
  
positive.code:         throw:Reason -> {reply, Reason, State}
      end;
  
  handle_call(list, _From, #state{feeds=Feeds}=State) ->
      {reply, get_all_feeds(Feeds), State};
  
  handle_call(update, _From, #state{feeds=Feeds}=State) ->
      check_for_updates(Feeds),
      {reply, ok, State};
  
  handle_call({update_feed, Uri}, _From, #state{feeds=Feeds}=State) ->
      update_feed(Uri, Feeds),
      {reply, ok, State};
  
  handle_call(_, _From, State) ->
      {reply, ok, State}.
  
  
negative.code: 
  init([]) ->
      io:format("~p starting~n", [?MODULE]),
      {ok, #state{}}.
  
  handle_call({add, User, Uri}, _From, #state{feeds=Feeds}=State) ->
  