Added some checks for reprovisioning and setting vram