Code for CmsHI