Added support for pasting text.