Added command line flags and file globbing.