Version 0.4, as submitted to CRAN