Add readdataset method insteading of original two parts.