Working version of table search.