Put the R functions in the wrong place initially!