Reformatting MQ outputs