Added commandline flags and optional verbosity.