Tcl functional extension