Using Lua 5.2 helper function.