Renamed setCursorPosition to cursorPosition