Add stats.json support