Added support for copy-and-paste.