Explore table. Refactoring needed