Sorted out table implementation.