Was missing a few functions (in R/utils.R)