Added the ability to set the granularity of the search at the command line.