Minor changes. Use of text area tmp