Moved HCRP stuff to a separate file