Lua 5.2 stock code... *sigh*