Some templare fixes, add email processing.