Added option to exclude certain file extensions