Prettify.
Add trace log.
Fix email loop.