Added Perf and fixed  Flush To Disk