Using batch processing with models