Writing changed vertices to file.