Base connection logic all works now.