Added multi-email support and testing.