Adding docstring for NewConnection