Added logging for port.