Added option for port and ssl.