Updated handling finished datasets.
Updated handling finished datasets.