Keep a history of used datasets, add listdatasets