Write changes.