Added function for email problem.