Implemented the email function. Could not test might not be a good change.