Add CCF. Fix output to file
Separate into two progects