Optimized file output slightly