Cursor should not be class attribute since sometimes we use multiple cursors
Fixed bugs in protein grouping using rows - works in unrolled too now