More work on cursors