Modified package record_plaintext as flatfile_record