Re-added the copy to clipboard code.