Updated Delete Mod Function