Moved Tcl initialization to the end