Made the function 'dim' available to client and changed argument name 'data' to 'dataset' in function ag.checkvar1.ds.