Version without error handling. Rcpp