Moved code chunk to be more associated with the actual connecting call