Implementation of cut/copy/paste operations.
Not working properly.