Connect function added