Updated. Now writes to file