Adding some C code