anchor.diff:      send_heartbeat_with_peers(ns_node_disco:nodes_wanted(), master, StateData1#state.peers),
       {next_state, master, StateData1};
   
  -handle_info(send_heartbeat, worker, StateData) ->
  -    misc:flush(send_heartbeat),
  -    %% Workers don't send heartbeats, but it's simpler to just ignore
  -    %% the timer than to turn it off.
  -    {next_state, worker, StateData};
  -
   handle_info({peers, Peers}, master, StateData) ->
       S = update_peers(StateData, Peers),
       case lists:member(node(), Peers) of
  
positive.code: 
  %% States
  -export([candidate/2,
           master/2,
           worker/2]).
  
  %%
  %% API
  
negative.code:             ale:info(?USER_LOGGER, "I'm the only node, so I'm the master.", []),
              {ok, master, start_master(#state{last_heard=Now, peers=P})};
          Peers when is_list(Peers) ->
              %% We're a candidate
              ?log_debug("Starting as candidate. Peers: ~p", [Peers]),
              {ok, candidate, #state{last_heard=Now, peers=Peers}}
      end.
  
  maybe_invalidate_current_master() ->
  