Make the C code do the same thing as the julia code.