Add vm.protect function and protection constants
Changing scripting template