Fixed a small hardcoded bug, as well as added a dry run flag.