Merging copy/paste function

As asked by Scofred