Updated the setupNetworking() so that it is called