'ds.checkvar' amended; it now calls two new functions that carry out the checks under different settings.