Implemented addPendingConnectedNodes