Fixing issue where emails are being sent multiple times.