Connect only when needed