Create network_init and network_deinit functions