Initial C code for RTB calculations.