Reformated AQE code so it outputs nice JSON