Added draft of compute_transform to connection