Version submitted to CRAN