Moving connect back into app initialization