Use a parameter instead of a new instance variable to set dry_run