Contours serialize