Changes to R package