Added email function still needs work