Change log format.
Add command line options.
Fix dryRun.