Added batch operation support (+ tests).