Adding C code