Added support for file pattern matching.