Added stuff for HTTPS