Added support for address ranges and checks for correct address and range format.