Made quite a few fixes to accommodate very large Label names, RatioGroup names and Channel names.