Added SSL checks