Modified vm.c