Add contour parsing.