Update NetworkManager.java