Finished the C conversion