Pulled out a bunch of functions into my new 'vus' library.