Migrate to C files