Added support for excluding patterns