Start on multiple-dataset support.
Multiple datasets support (and autodetect) added.