Moved connections to shared method