Added option to ignore extensions