Did some connection stuff