Use the length operator instead of table.getn

Should also be faster...