andom()*10) );
            }
            payload = numlist.join('');

            // Initialize stats
            sent      = 0;
            received  = 0;
            latencies = [];
            ltotal    = 0;
            laverage  = 0;
            lrunning  = 0;
            lmin      = 999999999;
            lmax      = 0;
            actualSendDelay = sendDelay;

            $D('connectButton').value = "Stop";
            $D('connectButton').onclick = disconnect;
            console.log("<< connect");
  