First working version of CFA