Clean up common.
Add the ability to dry-run the command without sending e-mail.