Improved regionMark and cursor.