Converted layer script to Visual Basic script. Plan is to convert all scripts eventually.