Renamed r to R.