Added support for multiple addresses.