anchor.diff:  -endif.
   
   -define(SERVER, ?MODULE).
  --define(POLL_PERIOD, 30000).
  +-define(MIN_POLL_PERIOD, 30000). %% 30 secs
  +-define(MAX_POLL_PERIOD, 120000). %% 120 secs
  +
   -include("navstar_overlay.hrl").
  +-include_lib("stdlib/include/ms_transform.hrl").
   -include_lib("mesos_state/include/mesos_state_overlay_pb.hrl").
   -define(MASTERS_KEY, {masters, riak_dt_orswot}).
   
   
   -record(state, {
       known_overlays = ordsets:new(),
  -    ip = undefined :: undefined | inet:ip4_address()
  +    ip = undefined :: undefined | inet:ip4_address(),
  +    ref = erlang:error() :: reference(),
  +    poll_period = ?MIN_POLL_PERIOD :: integer()
   }).
   
   
  
positive.code:     {stop, Reason :: term()} | ignore).
  init([]) ->
      timer:send_after(0, poll),
      {ok, #state{}}.
  
  %%--------------------------------------------------------------------
  %% @private
  
negative.code:     HexList = lists:map(fun(X) -> erlang:integer_to_list(X, 16) end, IntList),
      lists:flatten(string:join(HexList, ":")).
  
  handle_event(Event, State0 = #state{known_overlays = KnownOverlays}) ->
      lists:foldl(
          fun(Overlay, Acc) -> try_configure_overlay(Event, Overlay, Acc) end,
          State0,
          KnownOverlays
      ).
  
  try_configure_overlay(Event, Overlay, State0) ->
      #mesos_state_agentoverlayinfo{info = #mesos_state_overlayinfo{subnet = Subnet}} = Overlay,
      ParsedSubnet = parse_subnet(Subnet),
      try_configure_overlay2(Event, Overlay, ParsedSubnet, State0).
  
  try_configure_overlay2(_Event = #{key := [navstar, overlay, Subnet], value := LashupValue},
      Overlay, ParsedSubnet, State0) when Subnet == ParsedSubnet ->
      lists:foldl(
          fun(Entry, Acc) -> maybe_configure_overlay_entry(Overlay, Entry, Acc) end,
          State0,
          LashupValue
      );
  try_configure_overlay2(_, _, _, State0) ->
      State0.
  
  maybe_configure_overlay_entry(Overlay, {{VTEPIPPrefix, riak_dt_map}, Value}, State = #state{ip = MyIP}) ->
      {_, AgentIP} = lists:keyfind({agent_ip, riak_dt_lwwreg}, 1, Value),
  