Rewrote init_cft()