Possibly fix crash due to Lua running out of stack space