Switching to use spaces
Adding ssh proxy command
Properly trapping the end of the script