Improved the strategy for the movement of vertices.