I am trying to automate a tedious task the keeps getting in the way of implementing Lua script with a lua script