Restructure writer.