A good candidate for Rcpp::plugin!