Reformat code for better readability and eliminate LOC. Err moved to first callback parameter. Err now = null instead of false if an IP address was found.