Added SSL support