Remove unused code
Fix the problem with pasting text, not to be truncated to 1024 bytes