Refactored the table functionality and interfaces.

All 357 tests pass.