Added option use secure connection