Add file_writer and tests.