Better support paste and deletion