Ernie Ghiglione
committed
on 13 Aug 08
Error handling and move procedure to tcl file instead