Added more boilerplate code to get data channel working