Removing dependence on R.utils