Improve robustness. Add more CLI options, most importantly support for date ranges.