Added support for Lua 5.x versions.