Now deals with bad channel input in a more logical way.