C code and random other stuff