         /* UI shown when debug is off. */
         private var badge:Badge;
 
-        /* Proxy pairs currently connected (up to MAX_NUM_PROXY_PAIRS). */
+        /* Proxy pairs currently connected (up to max_num_proxy_pairs). */
         private var proxy_pairs:Array;
 
         public var debug:Boolean;
         private var fac_addr:Object;
+        private var max_num_proxy_pairs:uint;
         private var local_addr:Object;
 
         public var rate_limit:RateLimit;

            port: 9002
        };

        private const MAX_NUM_PROXY_PAIRS:uint = 100;

        // Milliseconds.
        private const FACILITATOR_POLL_INTERVAL:int = 10000;

                return default_addr;
        }

        /* Get a number from the given movie parameter, or the given default.
           Returns null on error. First check for a null return, and then call
           uint or whatever on the return value if no error. */
        private function get_param_number(param:String, default_val:Number):Object
        {
            var spec:String;
            var val:Number;

            spec = this.loaderInfo.parameters[param];
            if (spec) {
                val = Number(spec);
                if (isNaN(val))
                    return null;
                else
                    return val;
            } else {
                return default_val;
            }
        }

        /* The main logic begins here, after start-up issues are taken care of. */
        private function proxy_main():void
        {
            var fac_url:String;
            var loader:URLLoader;

            if (proxy_pairs.length >= max_num_proxy_pairs) {
                setTimeout(proxy_main, FACILITATOR_POLL_INTERVAL);
                return;
            }
