Made the network into a singleton