 
         private function loaderinfo_complete(e:Event):void
         {
-            var client_spec:String, parts:Array;
+            var fac_spec:String, parts:Array;
 
             puts("Parameters loaded.");
-            client_spec = this.loaderInfo.parameters["client"];
-            if (!client_spec) {
-                puts("Error: no \"client\" specification provided.");
+            fac_spec = this.loaderInfo.parameters["facilitator"];
+            if (!fac_spec) {
+                puts("Error: no \"facilitator\" specification provided.");
                 return;
             }
-            puts("Client spec: \"" + client_spec + "\"");
-            parts = client_spec.split(":", 2);
+            puts("Facilitator spec: \"" + fac_spec + "\"");
+            parts = fac_spec.split(":", 2);
             if (parts.length != 2 || !parseInt(parts[1])) {
-                puts("Error: client spec must be in the form \"host:port\".");
+                puts("Error: Facilitator spec must be in the form \"host:port\".");
                 return;
             }
-            client_address = parts[0];
-            client_port = parseInt(parts[1]);
+            fac_address = parts[0];
+            fac_port = parseInt(parts[1]); 
 
             go(TOR_ADDRESS, TOR_PORT);
         }
 
         /* We connect first to the Tor relay; once that happens we connect to
-           the client; and when both connections exist we begin relaying data. */
+           the facilitator to get a client address; once we have the address
+	   of a waiting client then we connect to the client and BAM! we're in business. */
         private function go(tor_address:String, tor_port:int):void
         {
             s_t = new Socket();


        // Socket to Tor relay.
        private var s_t:Socket;
        // Socket to client.
        private var s_c:Socket;

        private var client_address:String;
        private var client_port:int;

        private function puts(s:String):void
        {

            });

            puts("Client: connecting to " + client_address + ":" + client_port + ".");
            s_c.connect(client_address, client_port);*/
        }
        
	private function fac_connected(e:Event):void
        {
            puts("Facilitator: connected.");

            s_f.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
                var client_spec:String = new String();
		client_spec = s_f.readUTF();
                puts("Facilitator: got \"" + client_spec + "\"");
                //s_c.writeBytes(bytes);
		/* Need to parse the bytes to get the new client. Fill out client_address and client_port */
            });
	   
	    s_f.writeUTFBytes("GET / HTTP/1.0");
	    s_f.flush();

        }

        private function client_connected(e:Event):void
