Channged logging file name and added perf to writefile.