anchor.diff:      broadcast_msg(Clients, JSON),
       {noreply, State#?STATE{last_nci = JSON,
                              nci = NCI,
  +                           last_nci_time = Time,
                              communities = Communities}};
   handle_cast({nci_details, Pid}, State = #?STATE{
                                               communities = Communities,
  -                                            nci = NCI}) ->
  -    clientsock:send(Pid, json_nci_details(NCI, Communities)),
  +                                            nci = NCI,
  +                                            last_nci_time = Time}) ->
  +    clientsock:send(Pid, json_nci_details(Time, NCI, Communities)),
       {noreply, State};
  -handle_cast({collectors, Pid}, State = #?STATE{collectors = Collectors}) ->
  -    clientsock:send(Pid, json_collectors(Collectors)),
  +handle_cast({collectors, Pid}, State = #?STATE{collectors = Collectors,
  +                                               last_qps_time = Time}) ->
  +    clientsock:send(Pid, json_collectors(Time, Collectors)),
       {noreply, State};
   handle_cast({qps, QPS, Collectors, UT}, State = #?STATE{clients = Clients}) ->
       Time = list_to_binary(tap_time:rfc3339(UT)),
  
positive.code: broadcast_msg(Clients, Msg) ->
      [clientsock:send(C, Msg) || C <- Clients].
  
  json_nci_details(undefined, Communities) ->
      json_nci_details(0, Communities);
  json_nci_details(NCI, Communities) ->
      jiffy:encode({[
          {<<"action">>,<<"NCIDetails">>},
          {<<"NCI">>,NCI},
          {<<"Time">>, list_to_binary(tap_time:rfc3339(calendar:universal_time()))},
          {<<"Communities">>, communities(Communities)}
      ]}).
  
  
negative.code: 
  % for debugging
  handle_call(nci_details, _From, State = #?STATE{communities = Communities,
                                                  nci = NCI,
                                                  last_nci_time = Time}) ->
      {reply, json_nci_details(Time, NCI, Communities), State};
  handle_call(collectors, _From, State = #?STATE{collectors = Collectors,
                                                 last_qps_time = Time}) ->
      {reply, json_collectors(Time, Collectors), State};
  handle_call(Msg, From, State) ->
      error({no_handle_call, ?MODULE}, [Msg, From, State]).
  
  