Create smart.tcl