Formatting.
Added test mode to check before sending emails.