Added batch processing to vertex_generation