Implemented pasting and deleting.