Added option to not downsample the dorf.