Added a sane(?) limit to each batch call.
Minor template fix.