Mail functionality
Performance test code