Changed outputfile for stats to append mode to not overwrite existing stats