Changed mail notifications approach and added some code for referral review.