Implement Limit in Cursor.