Setting up network manager