Changed implementation to allow multiple calls to ExcludeNode.