Rewrite to use nvm