Added checks for SSH to spawn