Made changes to support executing queries against multiple nodes.