Adding in the basis for the CPD stuff