Added method to set globals for a lua script