Added batch insert support.