Don't create statistics file when it is not neccessary