socket.on('complete', function(msg) {
        $('#run').text(runtext);
        running = false;
        console.log('Task complete.');
    });