Added debugging code to NetworkInterface.cc