anchor.diff:  	ssl:send(Socket, Bin),
   	{noreply, State};
   
  -handle_cast({send, udp, _Binary}, #state{udp_remote_info = undefined} = State) ->
  +handle_cast({send, udp, Binary}, #state{udp_remote_info = undefined} = State) ->
  +	?warning("Tried to send message over UDP before getting UDP sync info: ~p", Binary),
   	{noreply, State};
   
   handle_cast({send, udp, Binary}, State) ->
  
positive.code: 					udp_socket = {Ip, InPortNo}
  				},
  				ets:insert(client_ets, ClientRec),
  				State0 = State#state{udp_remote_info = {Ip, InPortNo}},
  				?info("Udp port sync up:  ~p:~p", [Ip, InPortNo]),
  				inet:setopts(Socket, [{active, once}]),
  
negative.code: 	inet:setopts(Socket, [{active, once}]),
  	{noreply, NewState};
  
  handle_info({udp, Socket, Ip, InPortNo, Packet},
  	#state{udp_socket = Socket, udp_remote_info = undefined} = State) ->
  		#state{cookie = Cookie, aes_key = AESKey, aes_vector = AESVector} = State,
  		Success = try begin
  			% Decrypt message
  			Decrypted = crypto:aes_cbc_128_decrypt(AESKey, AESVector, Packet),
  			% Strip padding added by OpenSSL's AES algorithm.
  			PaddingByteCount = binary:last(Decrypted),
  			Cleaned = binary:part(Decrypted, 0, byte_size(Decrypted) - PaddingByteCount),
  			% Decode JSON message
  			Json = mochijson2:decode(Cleaned),
  			Rec = json_to_envelope(Json),
  			#envelope{type = request, channel = <<"control">>, id = MsgID, contents = {struct, Request}} = Rec,
  			case proplists:get_value(<<"type">>, Request) of
  				<<"connect">> ->
  					case proplists:get_value(<<"cookie">>, Request) of
  						Cookie -> ok;
  						_ -> badcookie
  					end;
  				_ -> badrequest
  			end end,
  			% Send response over SSL transport
  			ConnectRep = {struct, [
  				{confirm, true}
  			]},
  			Response = #envelope{type = response, channel = <<"control">>, id = MsgID, contents = ConnectRep},
  			OutBin = wrap_for_send(Response),
  			SendRes = ssl:send(State#state.ssl_socket, OutBin),
  			?debug("UDP connection response ssl:send result:  ~p", [SendRes])
  		catch
  			What:Why ->
  				{What,Why}
  		end,
  		case Success of
  			ok ->
  				% Record this client's information in ETS
  				ClientRec = #client_connection{
  					pid = self(),
  					ssl_socket = State#state.ssl_socket,
  