Transfer code base to C