Add some debugging
Correctly parse IP addresses