Made connection into a record type.