Added returing of last vertex