Now writes to file.