Added basic support for table scans