Removing pointless checks. Added email templates.