Added support for multiple host addresses.