Added in an example in C code for Peter