Added ability to use IP addresses as input.