Moved release function into tsh.