adapted the cct algorithm to work this an unlimited number of lk-points.