Added ability to process a single query with multiple datasets.