Added support for glob matching.