Added email debugging stuff.