Now collects all the queue statistics and outputs them to a file in JSON...

... format. This is a baremetal version