Work in progress - implementation of the table controller.