Add cdfinder function