Refactored IPAddresses() class into several, shorter methods.