Code refactor. Detected new points on contour.