Connection generation