Modified the contour call somewhat.