Adds undelete mechanism