Separated out table functions. Moved to TableTools