Modified to have a connect in preparation to move logic from socket into connection.