Added more functionality, but it crashes when accessing a voronoi cell