New cxor lib written; needs tests and docs.