anchor.diff:      ServerRef ! Message,
       {noreply, State};
       
  -%lager:debug("Removing and disconnecting peer: ~p", [Peer]),
  -
  -%% Remove from the active view.
  -%Active = sets:del_element(Peer, Active0),
  -
  -%% Add to the passive view.
  -%State = add_to_passive_view(Peer,
  -%                          State0#state{active=Active}),
  -
  -%% Trigger connection.
  -%Connections1 = partisan_util:maybe_connect(Peer, Connections0),
  -
  -%% Get next disconnect id for the peer.
  -%NextId = get_next_id(Peer, Epoch0, SentMessageMap0),
  -%% Update the SentMessageMap.
  -%SentMessageMap = dict:store(Peer, NextId, SentMessageMap0),
  -
  -%% Let peer know we are disconnecting them.
  -%do_send_message(Peer,
  -%                {disconnect, Myself0, NextId},
  -%                Connections1),
  -
  -%% Trigger disconnection.
  -%Connections = disconnect(Peer, Connections1),
  -
  -%lager:debug("Node ~p active view: ~p", [Myself0, members(Active)]),
  -
  -%            State#state{connections=Connections,
  -%                        sent_message_map=SentMessageMap}
  -%    end.
  -    
   %% Optimization Reply
  -handle_message({optimization_reply, true, #state{myself=OPeer}, #state{active=Active} = InitiatorState, CandidateState, none}, #state{myself=Myself,connections=Connections}) ->
  +handle_message({optimization_reply, true, #state{myself=OPeer}, #state{active=Active} = InitiatorState, CandidateState, undefined}, #state{myself=Myself,connections=Connections}) ->
   	Check = is_in_active_view(OPeer, Active),
   	if Check ->
   		%Revisar los disconnect
  
positive.code: 
  %% Optimization
  handle_message({optimization, _, OldState, #state{active=Active, reserved=Reserved, max_active_size=MaxActiveSize} = InitiatorState, 
  				#state{myself=CPeer,tag=CTag}=CandidateState, DisconnectState}, #state{connections=Connections}) ->
  	Check = is_full({active, Active, Reserved},MaxActiveSize),
  	if not Check -> 
  			add_to_active_view(CPeer, CTag, InitiatorState), %% I think this is good specified, add CPeer with CTag to active view of InitiatorState
  			do_send_message(InitiatorState, {optimization_reply, true, OldState, InitiatorState, #state{}, none}, Connections); %% Change the null value for erlang equivalent
  		true ->
  %			d = Active[UNOPT],
  			do_send_message(DisconnectState,{replace, none, #state{}, DisconnectState, OldState, CandidateState}, Connections)
  	end;
  	
  %% Replace Reply
  
negative.code: 			add_to_active_view(DPeer, Tag, InitiatorState) %%What tag?? 
  	end,
  	%% TODO: Determine which answer return
  	do_send_message(DisconnectState, {switch_reply, answer, OldState, InitiatorState, CandidateState, DisconnectState}, Connections).
  	
  is_better(_,_) -> %New, Old) ->
  	true.
  