Some fixes for network. Now it should work if the server is ready.