Rename addFlags to cursorFlags