BatchProcessor fixes and improvements.