Implement writer.