Added networking code to GenericClient