Connection function changed