Connection setup moved to app delegate