Added condition for datasets space