Created consumer_index counter in channel_consumer instead of using uninitialized channel_index, to be able to have more than one channel_consumer on the same channel.