Add all the connection stuff