Use the "local" keyword for variable declarations in Lua