Implement cursor for .all

Using cursor and a custom block to iterate the cursor