Correctly detects existing profiles. Something goes wrong with connectingthough.