Update for write_items()