Added support for SSL checking