Added support for creating a new stats file.