Added file writer, dunno if works.