Added more options for merging datasets. Still investigating the problem.