Added contour simplifier