Localized some data in order to avoid conflicts. Note that a LUA script can not have more than 200 locals. Currently 199.