Paste function, modularize