Fixed generateTableSize function. -DV