Add 'fast' argument to select C code or R code