Added lines to namespace to make rcpp functions work