Added per-channel weights.