Implement table-scan