Prepare dataset
Write merged data