Improved Script

- Improved Lua Script Performance