Add ssh and trw functions