anchor.diff:      PreviousRingData = state_get(ring_data, PrevState),
       CurrentRingData = state_get(ring_data, CurState),
       BestState = previous_or_current(PrevState, CurState),
  -    Best = if BestState =:= CurState -> current_data;
  -              BestState =:= PrevState -> previous_data
  -        end,
  +    Best = case BestState of
  +               CurState -> current_data;
  +               PrevState -> previous_data
  +           end,
       KeyValueList =
           [{to_string(state_get(instance, CurState)), ""},
            {"best",                Best},
  
positive.code:     EnvPid = comm:reply_as(comm:this(), 3, {cb_reply, state_get(instance, State), '_'}),
      comm:send_local(DHT_Node, {get_node_details, EnvPid, [load, load2, load3, db, my_range]}).
  
  -spec is_valid_round(RoundStatus::gossip_beh:round_status(), RoundFromMessage::round(),
      PrevState::state(), CurState::state()) -> boolean().
  is_valid_round(RoundStatus, RoundFromMessage, PrevState, CurState) ->
      RoundFromState = case RoundStatus of
          current_round -> state_get(round, CurState);
          old_round -> state_get(round, PrevState)
      end,
  
      if RoundFromState =:= RoundFromMessage -> true;
         true ->
              log:log(warn(), "[ ~w ] Invalid ~w. RoundFromState: ~w, RoundFromMessage: ~w",
                     [state_get(instance, CurState), RoundStatus, RoundFromState, RoundFromMessage]),
             false
      end.
  
  
  -spec new_round(NewRound, State, State) -> {ok, FullState} when
      is_subtype(NewRound, round()),
      is_subtype(State, state()),
      is_subtype(FullState, full_state()).
  new_round(NewRound, PrevState, CurState) ->
      % Only replace prev round with current round if current has converged.
      % Cases in which current round has not converged: e.g. late joining, sleeped/paused.
  
negative.code: 
  -spec finish_request(CurState::state()) -> state().
  finish_request(CurState) ->
      case state_get(leader, CurState) of
          true ->
              LoadDataList = state_get(load_data_list, CurState),
              Histo = data_get(histo, get_default_load_data(LoadDataList)),
              Requestor = state_get(requestor, CurState),
              comm:send(Requestor, {histogram, Histo}),
              gossip:stop_gossip_task(state_get(instance, CurState));
          false ->
              do_nothing
      end,
      CurState.
  
  