Adding connection stuff