Write contents