Have changed the defult extention guessing method to be more generic.
Enabaling guessing of the extention name.