Move tclear into being a function