Implement copy/paste + bugfix