Fixed query pooling mechanism, now each aggregation agent is controlled by its own query pool.