Added automatic checking of available emails.