Added couts and changed NetworkInterface initialization to ensure network interfaces are properly registered.