Completed constructor for CCM