Sorting out how we get the connection information.