Connect to node only if required