Work on ccm, trying to match sjcl's format as close as possible