Fixes remaining bugs

It now prints the IPs properly.