Changed vegas code.