Updated to use newer connection method example and doc for related funcs