Changed connect.sh to use hostnames