VirtualMachine and CPU refactored