Rewrote channel index assignments, fixed up logging but did NOT yet implement per-channel logging.