Adding logic to connect account if not connected.