Added options block, to be passed on to writeFile and writeFileSync