Getting the C callbacks working.