Added drawCursor.