Dealing with multiple samples

Thanks also a good option. Also the global space should have the name from the dataset id.