Implement CPI, CPD
Implement CPIR and CPDR