Rewrite the cconv conversion algorithm, for clarity.