Adding support for dataset in R^n