Changes to allow more than 255 channels to be loaded