Write to disk.