Added check to ensure that data_channels is set