Add the network call code