Added deletion and filtering functionality.