Added hack to write performance correctly to file