Added option to exclude file patterns.