Add c code.
Back out change to mode parameter.