Adding a way to specify the max batch size through Configuration

I prefer catching early where you can but OK :shipit: