Added email and SMS functionality