Added insecure deletion and addition of materials