'ds.exists' and 'ds.rowcolCalc' added. Changes on some previous functions.