Added batch option for write_points