Updated the search for table elements to make sure they work with the cache system (list of lines)