Add batch input/output support.