The code will be cleaner if you accept a `writeFile` option hash as third parameter rather than only the file mode.