Added contour orientation