Adding batch functions