Added the notion of a ScanStateCursor