Patch to add remote host passing to commands