Add getter for the connection object