Added deletion processing code