Added debugging statements to the email and sms notification code for testing on staging.