Add assemble_parts to writer.