Added file extension guessing and delete rule