Improved file output.