Added a glob flag to search only for the pattern specified.