Add delete and restore functions