Updated write-to-file classes.