Adapted to new vertex interface.