The number of channels is now set when creating the states rather than when