Imported from https://github.com/IntelLabs/vdms