Updated logging and IPv4 support