Added data record sheet and commented the intermediate dataset writing line.