Fixed name space calls to pass cran check.