I really don't like having this in the toplevel program. It belongs somewhere with vcloud-specific code.