Thanks DdlV. I edited the script above now but I still get a crash trying to read it back in.