Update code for finding ccds