A couple of minor changes to connect.sh to make it more readable