Set up network structure