Changed canConnect to canPipeConnect