Added cursors and min/max for index.