Added restore and store features for VMs.