Now: Replaced table.getn-function with the #-operator (for Lua 5.2).