Write contents.