Adding check_table method.