Now correctly parsing and emitting stats