Some minor bugfix, and now takes the channels separated and in order.