Reworking the pasting
Add library for the caret handling