Working on synchronous file output.