Done, and added a check that state_iri and edit_iri are populated before adding them to misc_attributes.