Connect function not working

This is more targetted advice