Wrote some methods for TableStats