Added ExcludePattern

Code cleanup