Output of queries (required for emission) added