Updated to remove vertices while creating splines.