Adding delete code.