Added virtual engine code