Added batching functionality parallel jobs.