Haha, I think I need to admit that this code was actually just copied from the Puppet code, so I don't think I wrote that. I didn't change it much, because I wanted to wait until I wrote the CLI so that I had a better idea of what I needed to be in here.