Improve tssh script