Added email function.