Thank you for the reply. I did my best attempt to fix the variable problem here, albeit I do not know if it's completely correct (It doesn't function correctly, so it's easy to assume that): proc html_stat {} { set htmlfile [open "index.html" w] upvar magus magusstat maes maesstat gendo ge...