Changed getTable to buildTable.