Merge Jonas' RecordWriter.