Added email functionaility