Started to implement export_subset