Added email logger