Cleaned up functions.  stage_ssh takes params.