Changed to work with command line globs.