Added logic and tables to emails.