Added automatic publishing of stats data.