Creating code to automatically set up the connections in a hub level