Add support for connecting to multiple addresses.