Move CF code