Added some variables for text selection