Made changes to enable soft deleting.