         /* Badge with a client counter */
         [Embed(source="badge.png")]
         private var BadgeImage:Class;
-        private var client_count_tf:TextField;
-        private var client_count_fmt:TextFormat;
+        private var tot_client_count_tf:TextField;
+        private var tot_client_count_fmt:TextFormat;
+        private var cur_client_count_tf:TextField;
+        private var cur_client_count_fmt:TextFormat;
 
         public function puts(s:String):void
         {


            num_proxy_pairs++;
            total_proxy_pairs++;
            proxy_pair = new ProxyPair(this, client_addr, DEFAULT_TOR_ADDR);
            proxy_pair.addEventListener(Event.COMPLETE, function(e:Event):void {
                proxy_pair.log("Complete.");
                num_proxy_pairs--;
            });
            proxy_pair.connect();

            /* Update the client count on the badge. */
            update_client_count();
        }

        /* Parse an address in the form "host:port". Returns an Object with


        public function update_client_count():void
        {
            /* Update total client count. */
            if (String(total_proxy_pairs).length == 1)
                tot_client_count_tf.text = "0" + String(total_proxy_pairs);
            else
                tot_client_count_tf.text = String(total_proxy_pairs);

            /* Update current client count. */
            cur_client_count_tf.text = "";
            for(var i:Number=0; i<num_proxy_pairs; i++)
                cur_client_count_tf.appendText(".");;
        }

        public function swfcat()
