Add check for dataset pattern