Changed detail in the way the contour is calculated