"Check the contour" function